]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Add --help option to meson-install script
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 20 Mar 2023 00:55:59 +0000 (01:55 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 20 Apr 2023 15:59:56 +0000 (15:59 +0000)
It's not really necessary in an internal script, but it's easy
enough and doesn't hurt *shrug*

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2712>

.gitlab-ci/install-meson-project.sh

index c49d50c7fa2ca695ecd8b6b8e5b3dd6c1e16f1ba..e87407fe2a960bb8b0092a491e5d0c40d000de8d 100755 (executable)
@@ -11,12 +11,15 @@ usage() {
        Options:
          -Dkey=val      Option to pass on to meson
 
+         -h, --help     Display this help
+
        EOF
 }
 
 TEMP=$(getopt \
   --name=$(basename $0) \
-  --options=D \
+  --options='D:h' \
+  --longoptions='help' \
   -- "$@")
 
 eval set -- "$TEMP"
@@ -31,6 +34,11 @@ while true; do
       shift 2
     ;;
 
+    -h|--help)
+      usage
+      exit 0
+    ;;
+
     --)
       shift
       break